import axios from '@/config/axios'

export type search = {
  keyWord: string
  keyWord1: string
  searchType: number
  advancedSearches: string[]
  page: number
  size: number
  listSet: number
}

export const getRetrievalList = async (params: search) => {
  return await axios.post({ url: '/pay/searchSolr', data: params })
}
export const getClassificationList = async (code: String) => {
  return await axios.get({ url: '/pay/findOptimizeBook?code=' + code })
}
export const getAssociationalWords = async (params: search) => {
  return await axios.post({ url: '/pay/searchAssociationalWords', data: params })
}
